<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-logo" class="control-label col-xs-12 col-sm-2">LOGO:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-logo" data-rule="required" readonly class="form-control" size="50" name="row[logo]" type="text" value="{$row.logo}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-logo" class="btn btn-danger faupload" data-url='service/index/upload' data-input-id="c-logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-logo"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-logo"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-logo"></ul>
        </div>
    </div>

    <div class="form-group">
        <label for="c-logo" class="control-label col-xs-12 col-sm-2">选中状态的LOGO:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-select_logo" data-rule="required" readonly class="form-control" size="50" name="row[select_logo]" type="text" value="{$row.select_logo}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-select_logo" class="btn btn-danger faupload" data-url='service/index/upload' data-input-id="c-select_logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-select_logo"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-select_logo"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-select_logo"></ul>
        </div>
    </div>



    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">商机名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>'开启', '0'=>'关闭'], $row['status'])}
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">商家可添加:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[shop]', ['1'=>'开启','0'=>'关闭'], $row['shop'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">车主可添加:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[client]', ['1'=>'开启','0'=>'关闭'], $row['client'])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">表单类型:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[type]', ['0'=>'通用', '1'=>'二手车类型'], $row['type'])}
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">排序:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sort" data-rule="required" class="form-control" name="row[sort]" type="number" value="{$row.sort|htmlentities}" placeholder="数值越大，排序越靠前">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
